/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_prod_default_event.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROD_DEFAULT_EVENT
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_prod_default_event.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PROD_DEFAULT_EVENT::CTable_PPM_PROD_DEFAULT_EVENT( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROD_DEFAULT_EVENT" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_CHAR, 20, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EVENT_ID.setField( "EVENT_ID", DATA_CHAR, 10, 0 );
  makeTableItem( EVENT_ID );
  RESULT_ID.setField( "RESULT_ID", DATA_CHAR, 6, 0 );
  makeTableItem( RESULT_ID );
  FLOW_ID.setField( "FLOW_ID", DATA_CHAR, 20, 0 );
  makeTableItem( FLOW_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
}


CTable_PPM_PROD_DEFAULT_EVENT::CTable_PPM_PROD_DEFAULT_EVENT( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROD_DEFAULT_EVENT" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_CHAR, 20, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EVENT_ID.setField( "EVENT_ID", DATA_CHAR, 10, 0 );
  makeTableItem( EVENT_ID );
  RESULT_ID.setField( "RESULT_ID", DATA_CHAR, 6, 0 );
  makeTableItem( RESULT_ID );
  FLOW_ID.setField( "FLOW_ID", DATA_CHAR, 20, 0 );
  makeTableItem( FLOW_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
}

CTable_PPM_PROD_DEFAULT_EVENT::~CTable_PPM_PROD_DEFAULT_EVENT( )
{
    close();
}

